ASP.NET special tags

  • <% %> An embedded code block is server code that executes during the page's render phase. The code in the block can execute programming statements and call functions in the current page class. MSDN:
  • <%= %> most useful for displaying single pieces of information. MSDN:
  • <%# %> Data Binding Expression Syntax. MSDN:
  • <%$ %> ASP.NET Expression. MSDN:
  • <%@ %> Directive Syntax. MSDN:
  • <%-- --%> Server-Side Comments. MSDN:
  • <%: %> Like <%= %> But HtmlEncodes the output (new with Asp.Net 4). MSDN: